set CUR=%~dp0
cd /d D:\RT-ThreadStudio\repo\Extract\Debugger_Support_Packages\STMicroelectronics\ST-LINK_Debugger\1.6.0\tools\bin
STM32_Programmer_CLI.exe -c port=SWD mode=NORMAL -d "%CUR%rt-thread.elf" -rst -s
cd /d %CUR%